package com.mutouren.modules.datapush;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {

	private static ClassPathXmlApplicationContext springContext;

	public static void main(String[] args) throws InterruptedException {
		springContext = new ClassPathXmlApplicationContext("spring-mvc.xml");	
		
		System.out.println("bean count : " + springContext.getBeanDefinitionCount());
		for(String beanName : springContext.getBeanDefinitionNames()) {
			System.out.println(beanName);
			System.out.println("::" + springContext.getBean(beanName).getClass());
			
		}
		Thread.sleep(1000000);
		springContext.close();
				
	}

}
